<?php
/* @var $this ColorController */
/* @var $model Color */
$this->breadcrumbs=array(
Yii::t('default', 'Category')=>array('index'),
$model->id,
);

$this->menu=array(
array('label'=>Yii::t('default', 'Create'), 'url'=>array('create')),
array('label'=>Yii::t('default', 'Update'), 'url'=>array('update', 'id'=>$model->id)),
array('label'=>Yii::t('default', 'Delete'), 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>Yii::t('default', 'Are you sure you want to delete this item?'))),
array('label'=>Yii::t('default', 'List'), 'url'=>array('index')),
);
?>

<h1>
<?php echo Yii::t('default', 'View'). ' ' . Yii::t('default', 'Category')?>
  #
  <?php echo $model->id; ?>
</h1>

  <?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
    array(
      'name' => Yii::t('default', 'name'),
      'value' => CategoryLang::model()->getName($model->id),
    ),
    array(
      'name' => 'image',
      'value' => $model->getCategoryImage($model->id, 90, 85),
      'type' => 'raw'
    ),
    array(
  		'name' => 'enabled',
  		'value' => ($model->enabled==1) ? Yii::t("default", "Yes") : Yii::t("default", "No")
    ),
    array(
  		'name' => 'createddate',
  		'value' => date("d-m-Y G:i",$model->createddate)
    ),
    array(
  		'name' => 'modifieddate',
  		'value' => date("d-m-Y G:i",$model->modifieddate)
    ),
  ),
)); ?>
